// @author: Nguyen Vu Hung

// Admin - Notifications
setInterval(loadNotificationsMessage, 1000)
setInterval(loadNotificationsRequest, 1000)

function loadNotificationsMessage() {
	$.getJSON("countnewuserjson.json", {
		ajax : 'true'
	}, function(data) {
		var notiNewMembers = document.getElementById("notiNewMembers");
		notiNewMembers.innerHTML = data;
		
		var notiNewMembers = document.getElementById("notiHeadNewMembers");
		notiNewMembers.innerHTML = data;
	});
}

function loadNotificationsRequest() {
	$.getJSON("countnewrequestjson.json", {
		ajax : 'true'
	}, function(data) {
		var notiNewMembers = document.getElementById("notiNewRequest");
		notiNewMembers.innerHTML = data;
		
		var notiNewMembers = document.getElementById("notiHeadNewRequest");
		notiNewMembers.innerHTML = data;
	});
}
